/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * https://zhiqim.org/project/zhiqim_framework/zhiqim_orm.htm
 *
 * Zhiqim ORM is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.orm.test.dbo;

import java.io.Serializable;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 管理员表 对应表《ADMIN》
 */
@AnAlias("Admin")
@AnNew
@AnTable(table="ADMIN", key="ADMIN_NAME", type="InnoDB")
public class Admin implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="ADMIN_NAME", type="string,32", notNull=true)    private String adminName;    //1.管理员名称
    @AnTableField(column="ADMIN_PASS", type="string,32", notNull=true)    private String adminPass;    //2.管理员密码
    @AnTableField(column="ADMIN_TIME", type="string,19,char", notNull=true)    private String adminTime;    //3.管理员时间

    public String toString()
    {
        return Jsons.toString(this);
    }

    public String adminName()
    {
        return adminName;
    }

    public Admin adminName(String adminName)
    {
        this.adminName = adminName;
        return this;
    }

    public String adminPass()
    {
        return adminPass;
    }

    public Admin adminPass(String adminPass)
    {
        this.adminPass = adminPass;
        return this;
    }

    public String adminTime()
    {
        return adminTime;
    }

    public Admin adminTime(String adminTime)
    {
        this.adminTime = adminTime;
        return this;
    }
}
